home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / fpu881 / src6.zoo / sinh.s < prev    next >
Text File  |  1991-09-24  |  618b  |  32 lines

  1. # pml compatible lib for the atari sfp004
  2. #
  3. # Michael Ritzert, Oktober 1990
  4. # ritzert@dfg.dbp.de
  5. #
  6. # FUNCTION:    SINH(X)
  7. #
  8. # base =    0xfffa50
  9. #      the fpu addresses are taken relativ to "base":
  10. comm =     -6
  11. resp =    -16
  12. zahl =      0
  13.  
  14. #LC0:
  15. #    .ascii "sinh: OVERFLOW error\12\15\0"
  16. #LC1:
  17. #    .ascii "sinh: UNDERFLOW error\12\15\0"
  18.     .even
  19. .globl _sinh
  20. _sinh:
  21.     lea    0xfffa50,a0
  22.     movew    #0x5402,a0@(comm)    | specify function
  23.     cmpiw    #0x8900,a0@(resp)    | check
  24.     movel    a7@(4),a0@        | load arg_hi
  25.     movel    a7@(8),a0@        | load arg_low
  26.     movew    #0x7400,a0@(comm)    | result to d0
  27. # wait
  28.     .long    0x0c688900, 0xfff067f8
  29.     movel    a0@,d0
  30.     movel    a0@,d1
  31.     rts
  32.